At run time the display does not close and the application logs errors about the Close Display button to diagnostics if:
How the Close Display button works at run time
Set up a caption and image for a button
Set up controls for the Close Display button (Connections tab)